package community.hospital.common;

import community.hospital.enums.BusinessEnum;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author：ydj
 * @Date：2023/1/16 15:32
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class CustomerException extends RuntimeException {
    private BusinessEnum businessEnum;

    public String getMsg() {
        return businessEnum.getMsg();
    }

}
